Skip to content

[Artifact1572] アフターグロウの作成#2078

Open
ogachu0331 wants to merge 8 commits into
masterfrom
dev/ogachu_artifact1572
Open

[Artifact1572] アフターグロウの作成#2078
ogachu0331 wants to merge 8 commits into
masterfrom
dev/ogachu_artifact1572

Conversation

@ogachu0331

Copy link
Copy Markdown
Contributor

圧倒的ロマン砲

@Lapis-LJA Lapis-LJA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passiveフォルダが誤字ってそう

# 神器の発動条件 (TextComponentString) (オプション)
# data modify storage asset:artifact Condition set value
# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション)
data modify storage asset:artifact AttackInfo.Damage set value [9999]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9999.9の方が良くない?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かに
変えました!

Comment thread Asset/data/asset/functions/object/1166.after_glow/tick/beem.mcfunction Outdated
Comment thread Asset/data/asset/functions/object/1166.after_glow/tick/.mcfunction Outdated
@Lapis-LJA

Lapis-LJA commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

何Tickで着弾するのか、というのも調整されると思うので神器側定義で良いかも?

Comment on lines +7 to +9
# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く
#function asset:artifact/common/check_condition/mainhand
# 他にアイテム等確認する場合はここに書く

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この条件を無視すると信仰外でもポインターが表示されるので、無視しないほうが良いかも

# Object召喚
data modify storage api: Argument.ID set value 1166
# ダメージセット
data modify storage api: Argument.FieldOverride.Damage set value 9999.9

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9999.9d と書くといいかも(floatだと稀に計算の際にダメージが誤差で小さくなる場合がある)

Comment on lines +26 to +38
data modify storage lib: Argument.BoundingCylinder.Selector set value "@e[type=#lib:living_without_player,tag=Enemy,tag=!Uninterferable]"
execute positioned ~ ~-1 ~ run function lib:bounding_cylinder/
# ダメージ
data modify storage api: Argument.Damage set from storage asset:context this.Damage
data modify storage api: Argument.AttackType set value "Magic"
data modify storage api: Argument.ElementType set value "Thunder"
execute store result score $UserID Temporary run data get storage asset:context this.UserID
execute as @a if score @s UserID = $UserID Temporary run function api:damage/modifier
execute as @e[type=#lib:living_without_player,tag=Enemy,tag=BoundingCylinder,tag=!Uninterferable] run function api:damage/
function api:damage/reset
scoreboard players reset $UserID Temporary
# tagリセット
tag @e[type=#lib:living_without_player,tag=Enemy,tag=BoundingCylinder,tag=!Uninterferable] remove BoundingCylinder

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

範囲内の3か所のセレクターに..128とかでもいいのでdistanceをつけてほしいかな
distanceの指定がないと別のdimensionも総当たりしてしまうので

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants